from aiogram import types
from aiogram_dialog import DialogManager
from fluentogram import TranslatorRunner

from poker_bot.tg_bot.services.tg_helpers import answer_msg_with_autodelete
from poker_bot.tg_bot.states import DepositInfoSG


async def display_deposit_details(_, __, manager: DialogManager, deposit_id: str):
    await manager.start(DepositInfoSG.deposit_info, {"deposit_id": int(deposit_id)})


async def set_payment_method_id(_, __, manager: DialogManager, payment_method_id: str):
    manager.dialog_data["payment_method_id"] = int(payment_method_id)
    await manager.next()
